import { axios } from '@/utils/request'


export function getList (parameter) {
  return axios({
    url: '/xxx' + '/list',
    method: 'get',
    params: parameter
  })
}

export function save (parameter) {
  return axios({
    url: '/xxx' + (parameter.id > 0 ? '/update' : '/save'),
    method: 'post',
    data: parameter,
  })
}

export function del (parameter) {
  return axios({
    url: '/xxx' + '/remove',
    method: 'post',
    params: parameter
  })
}

